﻿#ifndef THREADSHOWCHANGEFILES_H
#define THREADSHOWCHANGEFILES_H
#include <QThread>
#include <QHash>
#include <QMutex>
#include <QDir>
#include <QDateTime>
#include <QMutexLocker>
#include <StdClassFun.h>
#include "ThreadShowChangeFiles_global.h"

class THREADSHOWCHANGEFILES_EXPORT ThreadShowChangeFiles : public QThread {
Q_OBJECT;
	QHash<QString, QDateTime> foreachPath(QString& dirPath);
public:
	ThreadShowChangeFiles(QObject* parent = Q_NULLPTR);
	QString srcFilePath;
	QHash<QString, QDateTime> fileChangeInfo;

	QString getSrcFilePath( ) const {
		return srcFilePath;
	}

	void setSrcFilePath(QString srcFilePath) {
		this->srcFilePath = srcFilePath;
	}

protected:
	void run( ) override;
signals:
	void overTask(QHash<QString, QDateTime>* fileChangeInfo
		, QString* filePath);
};
#endif // THREADSHOWCHANGEFILES_H
